package com.study.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @program: shouxieSpring
 * @author: jzhou
 * @date: 2022-05-01 15:07
 * @version: 1.0
 * @description: 切面类
 **/
@Aspect
@Component
public class ZhouyuAspect {
    @Before("execution(public void com.study.service.UserService.test())")
    public void zhouyuBefore(JoinPoint joinPoint){
        System.out.println("ZhouyuAspect.zhouyuBefore");
    }

}
